package com.toolsder.demo.spring.security.jwt.entity;

import com.toolsder.demo.spring.security.jwt.entity.database.Resources;
import lombok.Data;

import javax.persistence.Id;

/**
 * created by 猴子请来的逗比 On 2020/8/25
 *
 * @author by 猴子请来的逗比
 */


@Data
public class ResourcesVO {
    private static final long serialVersionUID = -849789020398395195L;
    @Id
    private String id;

    /**
     * 资源url
     */
    private String resourcesUrl;

    /**
     * 资源名称
     */
    private String resourcesName;


    public ResourcesVO(Resources resources) {
        this.id = String.valueOf(resources.getId());
        this.resourcesUrl = resources.getResourcesUrl();
        this.resourcesName = resources.getResourcesName();
    }

}
